<template>
  <div class="main">
    {{ $t('message.sqym') }}
  </div>
</template>

<script>
import { venueList } from '@/api'
export default {
  data() {
    return {
      auth_code: '',
      total: 0
    }
  },
  mounted() {
    const auth_code = this.$route.query.auth_code
    this.auth_code = auth_code
  },
  methods: {
    getVenueList() {
      const param = { id: sessionStorage.getItem('userId') }
      const { pagination } = this
      venueList({ param, pagination, userId: sessionStorage.getItem('userId') }).then(res => {
        if (res.recordList.length <= 1) {
          sessionStorage.setItem('venueId', res.recordList[0].id)
          sessionStorage.setItem('logo', res.recordList[0].showLogo)
          this.$router.push('/home')
        }
        this.venueListData = res.recordList
        // this.totla = res.totalCount
        // const t = res.totalCount / 10
        // const count = Number(t.toFixed(0)) + (t - t.toFixed(0) > 0 ? 1 : 0)
        // this.totla = count * 10
        this.total = Math.ceil(res.totalCount / 10) * 10
        this.current = this.pagination.page
      })
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
